home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / bc_pas_2.zip / TARGET.H < prev    next >
C/C++ Source or Header  |  1992-07-17  |  4KB  |  166 lines

  1.  
  2. ;   /*\
  3. ;---|*|----====< TARGET.H >====----
  4. ;---|*|
  5. ;---|*| This file defines which product is being compiled. This is used
  6. ;---|*| for the PAS software libraries, etc.
  7. ;---|*|
  8. ;---|*| Copyright (c) 1992. Media Vision, Inc.    All Rights Reserved.
  9. ;---|*|
  10. ;---|*| To use this code, you must define one of the following variable names.
  11. ;---|*|
  12. ;---|*|    BUILD_NONE - General assembly of header. No target product defined
  13. ;---|*|    BUILD_PAS1 - Original Pro Audio Spectrum.
  14. ;---|*|    BUILD_PAS2 - Pro Audio Spectrum Plus.
  15. ;---|*|    BUILD_PAS3 - Pro Audio Spectrum 16.
  16. ;---|*|    BUILD_CDPC - CDPC.
  17. ;---|*|
  18. ;   \*/
  19.  
  20. //
  21. // Each product will some/all of of these features
  22. //
  23.  
  24. #define bMVA508      0x0001 // 0000000000000001b  MVA508(1) or National(0)
  25. #define bMVPS2         0x0002 // 0000000000000010b  PS2 bus stuff
  26. #define bMVSLAVE     0x0004 // 0000000000000100b  CDPC Slave device is present
  27. #define bMVSCSI      0x0008 // 0000000000001000b  SCSI interface
  28. #define bMVENHSCSI   0x0010 // 0000000000010000b  Enhanced SCSI interface
  29. #define bMVSONY      0x0020 // 0000000000100000b  Sony 535 interface
  30. #define bMVDAC16     0x0040 // 0000000001000000b  16 bit DAC
  31. #define bMVSBEMUL    0x0080 // 0000000010000000b  SB h/w emulation
  32. #define bMVMPUEMUL   0x0100 // 0000000100000000b  MPU h/w emulation
  33. #define bMVOPL3      0x0200 // 0000001000000000b  OPL3(1) or 3812(0)
  34. #define bMV101         0x0400 // 0000010000000000b  MV101 ASIC
  35. #define bMV101_REV   0x3800 // 0111100000000000b  MV101 Revision
  36. #define bMV101_MORE  0x8000 // 1000000000000000b  more bits in BX
  37.  
  38. //
  39. // Define the ASIC versions
  40. //
  41.  
  42. #define ASIC_VERSION_B 0x02 // revision B
  43. #define ASIC_VERSION_C 0x03 // revision C
  44. #define ASIC_VERSION_D 0x04 // revision D
  45. #define ASIC_VERSION_E 0x05 // revision E
  46. #define ASIC_VERSION_F 0x06 // revision F
  47.  
  48. //
  49. // First Pro Audio Spectrum feature list
  50. //
  51. #define PRODUCT_PROAUDIO    bMVSCSI
  52.  
  53. //
  54. // Pro Audio Plus feature list
  55. //
  56. #define PRODUCT_PROPLUS     bMV101+      \
  57.                 bMVSCSI+     \
  58.                 bMVENHSCSI+  \
  59.                 bMVSBEMUL+   \
  60.                 bMVOPL3
  61. //
  62. // Pro Audio Spectrum 16 feature list
  63. //
  64. #define PRODUCT_PRO16        bMV101+      \
  65.                 bMVA508+     \
  66.                 bMVSCSI+     \
  67.                 bMVENHSCSI+  \
  68.                 bMVSBEMUL+   \
  69.                 bMVDAC16+    \
  70.                 bMVOPL3
  71. //
  72. // CDPC feature list
  73. //
  74. #define PRODUCT_CDPC        bMV101+      \
  75.                 bMVSLAVE+    \
  76.                 bMVSONY+     \
  77.                 bMVSBEMUL+   \
  78.                 bMVDAC16+    \
  79.                 bMVOPL3
  80.  
  81.  
  82.  
  83. //
  84. //----====<  1st retail version of the Pro Audio Spectrum.
  85. //
  86. #ifdef BUILD_PAS1
  87. #define PROAS100    1        // 1st board - Pro Audio Spectrum
  88. #define PRODUCTDEFINED    PRODUCT_PROAUDIO// product has been identified
  89. #endif
  90.  
  91. //
  92. //----====<  8 bit Integrated PAS with rev 2 of the MV101
  93. //
  94.  
  95. #ifdef BUILD_PAS2
  96. #define PROAS200    1        // 1st board - Pro Audio Spectrum
  97. #define PRODUCTDEFINED    PRODUCT_PROPLUS // product has been identified
  98. #endif
  99.  
  100. //
  101. //----====<  16 bit Integrated PAS with rev 2 of the MV101
  102. //
  103.  
  104. #ifdef BUILD_PAS3
  105. #define PROAS300    1        // 1st board - Pro Audio Spectrum
  106. #define PRODUCTDEFINED    PRODUCT_PRO16    // product has been identified
  107. #endif
  108.  
  109. //
  110. //----====< 1st CDPC box >====----
  111. //
  112.  
  113. #ifdef BUILD_CDPC
  114. #define CDPC        1        // CDPC stand alone box
  115. #define PRODUCTDEFINED    PRODUCT_CDPC    // product has been identified
  116. #endif
  117.  
  118. //
  119. //----====<  If no product defined we must generate an error! >====----
  120. //
  121.  
  122.  
  123. //
  124. // Set all undefined equates to zero
  125. //
  126.  
  127. #ifndef PROAS100
  128. #define PROAS100        0
  129. #endif
  130.  
  131. #ifndef PROAS200
  132. #define PROAS200    0
  133. #endif
  134.  
  135. #ifndef PROAS300
  136. #define PROAS300    0
  137. #endif
  138.  
  139. #ifndef CDPC
  140. #define CDPC        0
  141. #endif
  142.  
  143. //
  144. //------------------====< Hardware Dependencies >====-------------------
  145. //
  146.  
  147. #if PROAS100                // Media Vision Pro Audio Spectrum Orig
  148. #define HWREVISION    0x00        // the H/W revision #
  149. #endif
  150. #if PROAS200                // Media Vision Pro Audio Spectrum Plus
  151. #define HWREVISION    0x01        // the H/W revision #
  152. #endif
  153. #if PROAS300                // Media Vision Pro Audio Spectrum 16
  154. #define HWREVISION    0x01        // the H/W revision #
  155. #endif
  156. #if CDPC                // Media Vision CDPC
  157. #define HWREVISION    0x01        // the H/W revision #
  158. #endif
  159.  
  160. #if (PRODUCTDEFINED & bMVA508)
  161. #define VOLUMEMAX     MVVOLUMEMAX
  162. #else
  163. #define VOLUMEMAX     NSVOLUMEMAX
  164. #endif
  165.  
  166.